.task-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

.page-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0 0 0 20px;
  font-size: 24px;
  color: #333;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0069d9;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.task-info-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.card-header h2 {
  margin: 0;
  font-size: 20px;
  color: #444;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.status-badge.active {
  background-color: #28a745;
  color: white;
}

.status-badge.finished {
  background-color: #6c757d;
  color: white;
}

.task-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  margin-bottom: 10px;
}

.info-item label {
  display: block;
  font-weight: bold;
  color: #666;
  margin-bottom: 3px;
  font-size: 14px;
}

.info-item span {
  display: block;
  color: #333;
  font-size: 16px;
}

.loading-container {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

.error-container {
  text-align: center;
  padding: 40px;
}

.error-message {
  color: #dc3545;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 4px;
}

.success-message {
  color: #28a745;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #d4edda;
  border-radius: 4px;
}

.students-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
  color: #444;
}

.search-box input {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 250px;
  font-size: 14px;
}

.empty-message {
  padding: 40px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.students-table-container {
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.students-table th,
.students-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.students-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #495057;
  position: sticky;
  top: 0;
  z-index: 1;
}

.students-table tr:hover {
  background-color: #f8f9fa;
}

.students-table tr.signed {
  background-color: rgba(40, 167, 69, 0.1);
}

.students-table tr.absent {
  background-color: rgba(220, 53, 69, 0.1);
}

.sign-status {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.sign-status.signed {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.sign-status.absent {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.sign-status.not_required {
  background-color: rgba(108, 117, 125, 0.2);
  color: #6c757d;
}

.summary-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.summary-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  margin: 10px;
}

.summary-item label {
  display: block;
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
  font-size: 14px;
}

.summary-item span {
  display: block;
  font-size: 24px;
  font-weight: bold;
}

.signed-count {
  color: #28a745;
}

.absent-count {
  color: #dc3545;
}

.sign-in-rate {
  color: #007bff;
}

@media (max-width: 768px) {
  .task-info-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-box {
    margin-top: 10px;
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .summary-item {
    min-width: 100px;
    margin: 5px;
  }
} 